package com.seselin.citypicker.bean;

import java.util.List;

/**
 * Created by Seselin on 2016/10/19 17:01.
 */

public class CountryBean {

    /**
     * cityList : [{"areaList":[{"id":"3","name":"东城区","pid":"2"},{"id":"4","name":"西城区","pid":"2"},{"id":"5","name":"崇文区","pid":"2"},{"id":"6","name":"宣武区","pid":"2"},{"id":"7","name":"朝阳区","pid":"2"},{"id":"8","name":"丰台区","pid":"2"},{"id":"9","name":"石景山区","pid":"2"},{"id":"10","name":"海淀区","pid":"2"},{"id":"11","name":"门头沟区","pid":"2"},{"id":"12","name":"房山区","pid":"2"},{"id":"13","name":"通州区","pid":"2"},{"id":"14","name":"顺义区","pid":"2"},{"id":"15","name":"昌平区","pid":"2"},{"id":"16","name":"大兴区","pid":"2"},{"id":"17","name":"怀柔区","pid":"2"},{"id":"18","name":"平谷区","pid":"2"},{"id":"19","name":"密云县","pid":"2"},{"id":"20","name":"延庆县","pid":"2"}],"id":"2","name":"北京市","pid":"1"}]
     * id : 1
     * name : 北京
     * pid : 0
     */

    private List<Province> provinces;

    public List<Province> getProvinces() {
        return provinces;
    }

    public void setProvinces(List<Province> provinces) {
        this.provinces = provinces;
    }

    public static class Province {
        private String id;
        private String name;
        private String pid;
        /**
         * areaList : [{"id":"3","name":"东城区","pid":"2"},{"id":"4","name":"西城区","pid":"2"},{"id":"5","name":"崇文区","pid":"2"},{"id":"6","name":"宣武区","pid":"2"},{"id":"7","name":"朝阳区","pid":"2"},{"id":"8","name":"丰台区","pid":"2"},{"id":"9","name":"石景山区","pid":"2"},{"id":"10","name":"海淀区","pid":"2"},{"id":"11","name":"门头沟区","pid":"2"},{"id":"12","name":"房山区","pid":"2"},{"id":"13","name":"通州区","pid":"2"},{"id":"14","name":"顺义区","pid":"2"},{"id":"15","name":"昌平区","pid":"2"},{"id":"16","name":"大兴区","pid":"2"},{"id":"17","name":"怀柔区","pid":"2"},{"id":"18","name":"平谷区","pid":"2"},{"id":"19","name":"密云县","pid":"2"},{"id":"20","name":"延庆县","pid":"2"}]
         * id : 2
         * name : 北京市
         * pid : 1
         */

        private List<City> cityList;

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getPid() {
            return pid;
        }

        public void setPid(String pid) {
            this.pid = pid;
        }

        public List<City> getCityList() {
            return cityList;
        }

        public void setCityList(List<City> cityList) {
            this.cityList = cityList;
        }

        public static class City {
            private String id;
            private String name;
            private String pid;
            /**
             * id : 3
             * name : 东城区
             * pid : 2
             */

            private List<Area> areaList;

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public String getPid() {
                return pid;
            }

            public void setPid(String pid) {
                this.pid = pid;
            }

            public List<Area> getAreaList() {
                return areaList;
            }

            public void setAreaList(List<Area> areaList) {
                this.areaList = areaList;
            }

            public static class Area {
                private String id;
                private String name;
                private String pid;

                public String getId() {
                    return id;
                }

                public void setId(String id) {
                    this.id = id;
                }

                public String getName() {
                    return name;
                }

                public void setName(String name) {
                    this.name = name;
                }

                public String getPid() {
                    return pid;
                }

                public void setPid(String pid) {
                    this.pid = pid;
                }
            }
        }
    }
}
